"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_tools = require("../../utils/tools.js");
if (!Array) {
  const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
  const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
  (_easycom_up_popup2 + _easycom_up_toast2)();
}
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_toast = () => "../../node-modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
  (_easycom_up_popup + _easycom_up_toast)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const uToastRef = common_vendor.ref(null);
    const showPopup = common_vendor.ref(true);
    const onPrivacy = (flag) => {
      common_vendor.index.setStorageSync("privacySatus", flag);
      showPopup.value = false;
      common_vendor.index.redirectTo({
        url: "/pages/crowd/home/index"
      });
    };
    common_vendor.onShow(() => {
      common_vendor.index.hideHomeButton();
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(($event) => common_vendor.unref(utils_tools.onPageJump)("/subPages/privacy/index")),
        b: common_vendor.o(($event) => onPrivacy(1)),
        c: common_vendor.o(($event) => onPrivacy(2)),
        d: common_vendor.p({
          show: common_vendor.unref(showPopup),
          round: 8,
          mode: "center",
          overlayOpacity: 0
        }),
        e: common_vendor.sr(uToastRef, "83a5a03c-1", {
          "k": "uToastRef"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-83a5a03c"]]);
wx.createPage(MiniProgramPage);
